package com.aliyun.messagemgt.common.errorcode;

/**
 * @author 晨泽
 * @version people-archive 1.0
 * @created 2017/12/18
 */
public enum ApiErrorCode {

    // HTTP状态码
    SUCCESS("200", "成功"),

    FAIL("500", "服务失败"),

    PARAM_INVALID("1001", "参数非法"),

    FUNC_INVALID("1002", "服务不存在"),

    RIGHT_INVALID("600", "鉴权失败"),

    PARAM_FILE_INVALID("1003", "文件为空");

    private String code;
    private String desc;

    private ApiErrorCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return this.desc;
    }

    public String getCode() {
        return this.code;
    }
}
